package com.zbkj.common.oss;

import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Auther:
 * @Date: 2024/7/7 20:50
 * @Description:
 */
@Component
@Setter
@Getter
@ConfigurationProperties(prefix = "oss")
public class OSSProperties {

    @Value("${oss.endpoint}")
    private String endpoint;

    @Value("${oss.accessKeyId}")
    private String accessKeyId;

    @Value("${oss.accessKeySecret}")
    private String accessKeySecret;

    @Value("${oss.backetname}")
    private String backetname;

    @Value("${oss.domain}")
    private String domain;

    @Value("${oss.innerDomain}")
    private String innerDomain;
}
